package o;

import android.text.TextUtils;
import com.huawei.appgallery.jsonkit.api.annotation.FieldSecurity;
import com.huawei.appgallery.jsonkit.api.annotation.SecurityLevel;
import com.huawei.appmarket.service.webview.agent.NegotiateResponse;

public class emx extends cvt {
    private static final String APIMETHOD = "client.negotiateKey";
    private String hcrId_;
    @FieldSecurity(security = SecurityLevel.PRIVACY)
    private String secretHash_;
    @FieldSecurity(security = SecurityLevel.PRIVACY)
    private String secret_ = epr.ˎ().ᐝ();

    static {
        cfw.ˊ(APIMETHOD, NegotiateResponse.class);
    }

    public emx() {
        setMethod_(APIMETHOD);
        try {
            this.secretHash_ = cev.ˋ(doa.ˋ(epr.ˎ().ʽ().getBytes("UTF-8")));
        } catch (Exception e) {
            Logger.e("NegotiateRequest", "Encrypt failed.");
        }
        if (!TextUtils.isEmpty(HcridSession.ˋ().ॱ())) {
            this.hcrId_ = HcridSession.ˋ().ॱ();
        }
    }
}
